import {get, post} from './http';

// 注册
export const reqRegister = (params)=>post('/api/register',params);

// 登录
export const reqLogin = (params)=>post('/api/login', params);

// 新人专享
export const reqGetnew = ()=>get('/api/getnew');

// 万人团
export const reqGetgroupon = ()=>get('/api/getgroupon');

// 倒计时
export const reqGetcountdown = ()=>get('/api/getcountdown');

// 秒杀
export const reqGetseckill = ()=>get('/api/getseckill');

// 获取商品信息首页
export const reqGetindexgoods = ()=>get('/api/getindexgoods');

// 获取商品分类
export const reqGetcate = ()=>get('/api/getcate');

// 获取分类商品
export const reqGetgoods = (params)=>get('/api/getgoods', params);

// 优惠券
export const reqGetcoupon = ()=>get('/api/getcoupon');
export const reqGoods = ()=>get('/api/getgoods');

// 购物车列表
export const reqCartlist = (params)=>get('/api/cartlist', params);

// /api/cartadd 购物车添加
export const reqCartadd = (params)=>post('/api/cartadd', params);

// 购物车删除
export const reqCartdelete = (params)=>post('/api/cartdelete', params);

// 购物车修改
export const reqCartedit = (params)=>post('/api/cartedit', params);

// 获取轮播图信息(我的)
export const reqGetbanner = ()=>get('/api/getbanner');

// 商品详情
export const reqGetgoodsinfo = (params)=>get('/api/getgoodsinfo', params);